package com.zcb.agrimarket.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zcb.agrimarket.pojo.Arrange;
import com.zcb.agrimarket.pojo.Lab;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.ArrayList;

/**
* @author KarrySmile
* @description 针对表【lab(实验室表)】的数据库操作Mapper
* @createDate 2024-04-05 17:06:44
* @Entity generator.domain.Lab
*/
@Mapper
public interface LabMapper extends BaseMapper<Lab> {

    @Update("update lab set repair_state=#{repairState} where id = #{id}")
    Boolean updateRepairState(long id, int repairState);

    @Select("select id from lab where lab_type=#{labType}")
    ArrayList<Long> selectByLabtype(long labType);
}




